﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddAreaForm.aspx.cs" Inherits="BaseData_AddAreaForm" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>当前位置：基础数据→生产相关→区域设置</title>
	<link href="../css/css.css" rel="stylesheet" type="text/css" />
	<!--#include file="../js/KeyControl.js"-->
	<base target="_self" />	
	<script type="text/javascript" language="JavaScript">
		function CheckFormMenu()
		{		
		
		   var btnSave=window.document.getElementById("btnSave");
		   if(btnSave!=null)
		   btnSave.click();
		}
			
	</script>

</head>
<body  style =" background-image :url('../images/hit_bg.gif');"> 
	<form id="form1" runat="server">
		<div>
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9F9FB" class="border11">
  <tr><td height="4"></td></tr>
  <tr>
    <td align="center"><fieldset style="width: 98%; height: 100%; padding: 2">
                        <legend>区域信息</legend>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><%if(EditStatus1==1) {%>
      <table width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#F9F9FB">
              <tr bgcolor="#e5eeff"> 
                <td align="right" style="height: 27px">编码</td>
                <td align="left" style="height: 27px"><asp:TextBox ID="txtChildAreaID" runat="server" MaxLength="5" Width="100px"></asp:TextBox><font color="#FF0000">*</font>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtChildAreaID"
                        ErrorMessage="RegularExpressionValidator" ValidationExpression="^[0-9]\d*$">由0-9数字组成</asp:RegularExpressionValidator>
                   </td>
                <td align="right" style="height: 27px"><%=arename %>-子区域名</td>
                <td align="left" style="height: 27px"><asp:TextBox ID="txtChildName" runat="server" MaxLength="20" Width="100px"></asp:TextBox><font color="#FF0000">*</font><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="-必填" ControlToValidate="txtChildName"></asp:RequiredFieldValidator>
				</td>
              </tr>
            </table>
            <% }
               else
            { %>
             <table width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#F9F9FB">
              <tr bgcolor="#e5eeff"> 
                <td align="right" style="height: 27px">编码</td>
                <td align="left" style="height: 27px"><asp:TextBox ID="txtChildArea" runat="server" MaxLength="5" Width="100px"></asp:TextBox><font color="#FF0000">*</font>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtChildArea"
                        ErrorMessage="RegularExpressionValidator" ValidationExpression="^[0-9]\d*$">由0-9数字组成</asp:RegularExpressionValidator>
                   </td>
                <td align="right" style="height: 27px">区域名</td>
                <td align="left" style="height: 27px"><asp:TextBox ID="txtName" runat="server" MaxLength="20" Width="100px"></asp:TextBox><font color="#FF0000">*</font><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="-必填" ControlToValidate="txtName"></asp:RequiredFieldValidator>
				</td>
              </tr>
            </table><%} %>
            </td>
  </tr>
</table>
</fieldset></td>
  </tr>
  <tr><td height="30"><div align="center">
							<asp:Button ID="btnSave" runat="server" Text="提交" Width="0px" Height="0px" BackColor="White"
								BorderColor="White" ForeColor="White" />
							&nbsp;&nbsp;&nbsp;
							<input type="button" id="Button1" value="提交" class="button02" onclick="CheckFormMenu();" />
							<input type="button" id="btnClose" value="关闭" class="button02" onclick="window.close();" />
						</div></td></tr>
</table>


		</div>
	</form>
</body>
</html>


